﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
    CodeBehind="olap.aspx.cs" Inherits="DD_Extensions.Reports.oalp" %>

<%@ MasterType VirtualPath="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2 class="DDSubHeader"><asp:Label ID="ReportTitleLabel" runat="server" Text="Label"></asp:Label></h2>
    <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0">
        <TabPages>
            <dx:TabPage Text="Pivot Grid">
                <ContentCollection>
                    <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td colspan="3">
                                    <asp:Button ID="ShowHideFieldsButton" runat="server" Text="Button" OnClick="ShowHideFieldsButton_Click" />
                                    &nbsp;
                                    <asp:ImageButton ID="ExportImageButton" runat="server" ImageUrl="~/Images/xlexport.png" ToolTip="Export to Excel"
                                        OnClick="ExportImageButton_Click" />
                                    &nbsp;<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Save.png" ToolTip="Save Layout"
                                        OnClick="ImageButton1_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" style="font-size: 1pt;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" id="Row1" runat="server">
                                    <dx:ASPxPivotCustomizationControl ID="ASPxPivotCustomizationControl1" runat="server"
                                        AllowedLayouts="StackedDefault" ASPxPivotGridID="ASPxPivotGrid1" DeferredUpdates="True"
                                        Height="450px" Width="350px">
                                    </dx:ASPxPivotCustomizationControl>
                                </td>
                                <td id="Row2" runat="server">
                                    &nbsp;
                                </td>
                                <td class="PivotGridContainer" valign="top">
                                    <dx:ASPxPivotGrid ID="ASPxPivotGrid1" runat="server" ClientIDMode="AutoID" DataSourceID="SqlDataSource1"
                                        Width="500px" EnableCallBacks="False">
                                        <OptionsView ShowHorizontalScrollBar="True" />
                                        <OptionsChartDataSource ProvideDataByColumns="False" FieldValuesProvideMode="DisplayText"
                                            ProvideColumnCustomTotals="False" ProvideColumnGrandTotals="False" />
                                        <OptionsPager RowsPerPage="18">
                                            <AllButton Visible="True">
                                            </AllButton>
                                        </OptionsPager>
                                        <OptionsLayout AddNewGroups="True" />
                                    </dx:ASPxPivotGrid>
                                    <dx:ASPxPivotGridExporter ID="ASPxPivotGridExporter1" runat="server" ASPxPivotGridID="ASPxPivotGrid1">
                                    </dx:ASPxPivotGridExporter>
                                </td>
                            </tr>
                        </table>
                    </dx:ContentControl>
                </ContentCollection>
            </dx:TabPage>
            <dx:TabPage Text="Chart">
                <ContentCollection>
                    <dx:ContentControl ID="ContentControl2" runat="server" SupportsDisabledAttribute="True">
                        Chart Type:<dx:ASPxComboBox ID="ChartType" runat="server" AutoPostBack="True" OnValueChanged="ChartType_ValueChanged">
                        </dx:ASPxComboBox>
                        <dxchartsui:WebChartControl ID="WebChartControl1" runat="server" DataSourceID="ASPxPivotGrid1"
                            Height="500px" SeriesDataMember="Series" Width="900px">
                            <borderoptions visible="False" />
                            <borderoptions visible="False"></borderoptions>
                            <diagramserializable>
                                <dx:XYDiagram>
                                    <axisx visibleinpanesserializable="-1">
                                        <label resolveoverlappingmode="HideOverlapped" staggered="True" />
                                        <range sidemarginsenabled="True" />
                                    <Label Staggered="True" ResolveOverlappingMode="HideOverlapped"></Label>
                                    <Range SideMarginsEnabled="True"></Range>
                                    </axisx>
                                    <axisy visibleinpanesserializable="-1">
                                        <range sidemarginsenabled="True" />
                                    <Range SideMarginsEnabled="True"></Range>
                                    </axisy>
                                </dx:XYDiagram>
                            </diagramserializable>
                            <fillstyle>
                                <OptionsSerializable>
                                    <dx:SolidFillOptions></dx:SolidFillOptions>
                                </OptionsSerializable>
                            </fillstyle>
                            <legend maxhorizontalpercentage="30"></legend>
                            <seriestemplate argumentdatamember="Arguments" valuedatamembersserializable="Values">
                                <ViewSerializable>
                                    <dx:LineSeriesView>
                                    </dx:LineSeriesView>
                                </ViewSerializable>
                                <LabelSerializable>
                                    <dx:PointSeriesLabel LineVisible="True" Visible="False">
                                        <fillstyle>
                                            <optionsserializable>
                                                <dx:SolidFillOptions />
                                            </optionsserializable>
                                        </fillstyle>
                                        <pointoptionsserializable>
                                            <dx:PointOptions>
                                            </dx:PointOptions>
                                        </pointoptionsserializable>
                                    </dx:PointSeriesLabel>
                                </LabelSerializable>
                                <LegendPointOptionsSerializable>
                                    <dx:PointOptions></dx:PointOptions>
                                </LegendPointOptionsSerializable>
                            </seriestemplate>
                        </dxchartsui:WebChartControl>
                    </dx:ContentControl>
                </ContentCollection>
            </dx:TabPage>
        </TabPages>
    </dx:ASPxPageControl>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
    </asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="EndOfBody" runat="server">
</asp:Content>